import Vue from 'vue'
import Router from 'vue-router'
import App from '@/App'
import Header from '@/components/Header'
import showbox from '@/components/ShowBox'
import join from '@/components/Join'
import application from '@/components/Application'
import register from '@/components/register'
import login from '@/components/login'

Vue.use(Router)

export default new Router({
  routes: [
    {//首页内容
      path: '/',
      name: 'App',
      component: showbox
    },
    {//加入易和
      path: '/join',
      name: 'Join',
      component: join
    },
    {//申请入驻
      path: '/application',
      name: 'application',
      component: application
    },{//登录
    	path: '/register',
      name: 'register',
      component: register
    },{//注册
    	path: '/login',
      name: 'login',
      component: login
    }]
//],
//routes1: [{//登录
//  	path: '/register',
//    name: 'register',
//    component: register
//  },{//注册
//  	path: '/login',
//    name: 'login',
//    component: login
//  }]
})
